Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add given_name and family_name attributes to id token #361

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alec-w
Copy link

@alec-w alec-w commented Jan 4, 2023

Fixes #360

Adds the given_name and family_name attributes into the id token.

In our project making use of cognito-local (thanks for this) this addressed the problem for us.

Guidance would be helpful on whether this is indeed the correct fix and how the tests should be modified to prevent a future regression on these attributes (typescript not being my forte).

@jagregory
Copy link
Owner

I think this looks fine. Ideally, we'd have a canonical list of attributes which are supposed to be exposed via the tokens and then we could write tests which verify they're exposed (if they're set on the user), but unless someone volunteers to do that I'm happy to just merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ID token does not include attributes such as given_name, family_name, or preferred_username
2 participants